<template>
   <div>
    <el-icon @click="ck"><CaretRight v-if="$store.state.HomeMoudule.navBool"/><CaretLeft v-else/></el-icon>
   </div>
</template>


<script setup>
import { CaretRight, CaretLeft }  from '@element-plus/icons-vue'
import { useStore } from "vuex";

// import { ref } from "vue";
// let bool=ref(true)

let store=useStore()

let ck=()=>{
    store.commit("SET_NAVBOOL")
}

</script>

<style lang='scss'>
.el-header{
    line-height: 70px;//设置行高
    .el-icon{
        font-size: 30px;
    }
}
</style>

